package com.bawei.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("索引信息")
public class EsDocInsertDto {


    @ApiModelProperty(value = "索引名称",required = true)
    @NotBlank(message = "索引名称不能为空")
    private String indexName;

    @ApiModelProperty(value = "索引映射",required = false)
    private Map mappings;

    @ApiModelProperty(value = "索引映射",required = false)
    private Map settings;

}
